import Vue from "vue"

export default {
    // 开启命名空间
      namespaced: true,
        state:()=>({
          account:JSON.parse(uni.getStorageSync("account") || '{}'),
         
        }),
      mutations:{
        UpdateTheData(state,account){
          state.address=address
            this.commit("m_user/account")
        },
        savausername(state){
        //    uni.setStorageSync("address",JSON.stringify(state.address)) 
        Vue.setStorageSync("username",JSON.stringify(state.username))
         },
         savapassword(state){
            //    uni.setStorageSync("address",JSON.stringify(state.address)) 
            Vue.setStorageSync("password",JSON.stringify(state.password))
             },
      },
    }
      getters:{
       
      
  }
  